<!-- INCLUDE overall_header.html -->
<script type="text/javascript" src="{ROOT_PATH}js/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="{ROOT_PATH}js/jquery/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript">
// <![CDATA[
function showonlyone(thechosenone) {
     $('.newboxes').each(function(index) {
          if ($(this).attr("id") == thechosenone) {
               $(this).show(200);
          }
          else {
               $(this).hide(600);
          }
     });
}
// ]]>
</script>
<h2>{L_CALENDAR_MONTH}</h2>

<div align="{S_CONTENT_FLOW_END}" style="margin-top: -15px;">
    <a href="{U_ICAL_LINK}" title="{L_CALENDAR_EXPORT_ICAL_EXPLAIN}">{L_CALENDAR_EXPORT_ICAL}</a> | 
    <a href="{U_CSV_LINK}" title="{L_CALENDAR_EXPORT_CSV_EXPLAIN}">{L_CALENDAR_EXPORT_CSV}&nbsp;</a>
	<br /><br />
    <a href="{U_SUBSCRIBE_PRIV_CAL}" title="{L_CALENDAR_SUBSCRIBE_PRIV_CAL_EXPLAIN}">{L_CALENDAR_SUBSCRIBE_PRIV_CAL}</a> | 
    <a href="{U_SUBSCRIBE_PUBLIC_CAL}" title="{L_CALENDAR_SUBSCRIBE_PUBLIC_CAL_EXPLAIN}">{L_CALENDAR_SUBSCRIBE_PUBLIC_CAL}</a>
    <!-- IF U_PUBLISH_RSS_CAL --> | <a href="{U_PUBLISH_RSS_CAL}" title="{L_CALENDAR_PUBLISH_RSS_EXPLAIN}">{L_CALENDAR_PUBLISH_RSS}&nbsp;</a><!-- ENDIF -->
	<br /><br />
</div>

<!-- IF S_FORUM_RULES -->
<div class="rules">
    <div class="inner"><span class="corners-top"><span></span></span>
        <!-- IF U_FORUM_RULES -->
            <a href="{U_FORUM_RULES}">{L_FORUM_RULES}</a>
        <!-- ELSE -->
            <strong>{L_FORUM_RULES}</strong><br />
            {FORUM_RULES}
        <!-- ENDIF -->
    <span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->

<table width="100%" cellpadding="1" cellspacing="0" border="0">
	<tr>
		<th>
		<a href="javascript:showonlyone('calendar-panel');" onclick="subPanels('calendar-panel'); showAppropriate('calendar-panel'); return false;"><strong>{L_LANG_CALENDAR}</strong></a> | 
		<a href="javascript:showonlyone('event-panel');" onclick="subPanels('event-panel'); showAppropriate('event-panel'); return false;"><strong>{U_ADD_EDIT_TAB}</strong></a>
		<!-- IF not S_OVERRIDE_USER --> | <a href="javascript:showonlyone('settings-panel');" onclick="subPanels('settings-panel'); showAppropriate('settings-panel'); return false;"><strong>{L_CALENDAR_SETTINGS}</strong></a><!-- ENDIF -->
		</th>
	</tr>
</table>

<form name="postform" id="postform" method="post" action="{S_POST_ACTION}"{S_FORM_ENCTYPE}>
	<div class="panel newboxes" id="calendar-panel" style="display: block">
              
    <table width="100%" cellpadding="2" cellspacing="0" border="0">
		<tr>
			<td align="center" class="cat" colspan="2"><h4>{L_LANG_CALENDAR}</h4></td>
		</tr>
		<tr>
			<td align="left"><a href="{U_PREV_MONTH}" class="gen"><img src="{T_IMAGESET_PATH}/arrowleftmonth.gif"></a></td>
			<td align="right"><a href="{U_NEXT_MONTH}" class="gen"><img src="{T_IMAGESET_PATH}/arrowrightmonth.gif"></a></td>
		</tr>
		<tr>
			<td align="center" colspan="3">
				<table class="tablebg" width="100%" cellpadding="0" cellspacing="1" border="0">
					<tr>
                                <!-- IF S_SHOW_WEEK_NUMS -->
                                <td class="row1" align="center" width="2%"><b>{L_WEEK_NUM}</b></td>
                                <!-- ENDIF -->
                                <!-- IF not S_MONDAY_FIRST -->
                                <td class="row1" align="center" width="14%"><b>{L_SUN}</b></td>
                                <!-- ENDIF -->
                                <td class="row1" align="center" width="14%"><b>{L_MON}</b></td>
                                <td class="row1" align="center" width="14%"><b>{L_TUE}</b></td>
                                <td class="row1" align="center" width="14%"><b>{L_WED}</b></td>
                                <td class="row1" align="center" width="14%"><b>{L_THU}</b></td>
                                <td class="row1" align="center" width="14%"><b>{L_FRI}</b></td>
                                <td class="row1" align="center" width="14%"><b>{L_SAT}</b></td>
                                <!-- IF S_MONDAY_FIRST -->
                                <td class="row1" align="center" width="14%"><b>{L_SUN}</b></td>
                                <!-- ENDIF -->
					</tr>
					<!-- BEGIN calendar_week -->
					<tr>
					<!-- IF S_SHOW_WEEK_NUMS -->
						<td class="row1" align="center">
							<table border="0" cellspacing="0" cellpadding="0" width="100%">
								<tr>
									<td title="{L_WEEK_NUM_EXPLAIN}"><a href="http://www.iso.org/iso/date_and_time_format">{L_WEEK_NUM}<br />{calendar_week.WEEK_NUM}</a></td>
                                </tr>
							</table>
						</td>
                        <!-- ENDIF -->
                        <!-- IF not S_MONDAY_FIRST -->
                        <td class="row1" align="center">
                        	<table border="0" cellspacing="0" cellpadding="0" width="100%">
                            	<tr>
                                	<td class="row3">{calendar_week.DAY0}</td>
                            	</tr>
                             	<tr>
                                	<td valign="top" class="row1">{calendar_week.DAY0_EVENTS}</td>
                             	</tr>
                        	</table>
                        </td>
                          <!-- ENDIF -->
                        <td class="row1" align="center">
                        	<table border="0" cellspacing="0" cellpadding="0" width="100%">
                            	<tr>
                                	<td class="row3">{calendar_week.DAY1}</td>
                            	</tr>
                             	<tr>
                                	<td valign="top" class="row1">{calendar_week.DAY1_EVENTS}</td>
                             	</tr>
                        	</table>
                        </td>
                        <td class="row1" align="center">
                        	<table border="0" cellspacing="0" cellpadding="0" width="100%">
                            	<tr>
                                	<td class="row3">{calendar_week.DAY2}</td>
                            	</tr>
                             	<tr>
                                	<td valign="top" class="row1">{calendar_week.DAY2_EVENTS}</td>
                             	</tr>
                        	</table>
                        </td>
                        <td class="row1" align="center">
                        	<table border="0" cellspacing="0" cellpadding="0" width="100%">
                            	<tr>
                                	<td class="row3">{calendar_week.DAY3}</td>
                            	</tr>
                             	<tr>
                                	<td valign="top" class="row1">{calendar_week.DAY3_EVENTS}</td>
                             	</tr>
                        	</table>
                        </td>
                        <td class="row1" align="center">
                        	<table border="0" cellspacing="0" cellpadding="0" width="100%">
                            	<tr>
                                	<td class="row3">{calendar_week.DAY4}</td>
                            	</tr>
                             	<tr>
                                	<td valign="top" class="row1">{calendar_week.DAY4_EVENTS}</td>
                             	</tr>
                        	</table>
                        </td>
                        <td class="row1" align="center">
                        	<table border="0" cellspacing="0" cellpadding="0" width="100%">
                            	<tr>
                                	<td class="row3">{calendar_week.DAY5}</td>
                            	</tr>
                             	<tr>
                                	<td valign="top" class="row1">{calendar_week.DAY5_EVENTS}</td>
                             	</tr>
                        	</table>
                        </td>
                        <td class="row1" align="center">
                        	<table border="0" cellspacing="0" cellpadding="0" width="100%">
                            	<tr>
                                	<td class="row3">{calendar_week.DAY6}</td>
                            	</tr>
                             	<tr>
                                	<td valign="top" class="row1">{calendar_week.DAY6_EVENTS}</td>
                             	</tr>
                        	</table>
                        </td>                                             
                        <!-- IF S_MONDAY_FIRST -->
                        <td class="row1" align="center">
                        	<table border="0" cellspacing="0" cellpadding="0" width="100%">
                            	<tr>
                                	<td class="row3">{calendar_week.DAY7}</td>
                            	</tr>
                             	<tr>
                                	<td valign="top" class="row1">{calendar_week.DAY7_EVENTS}</td>
                             	</tr>
                        	</table>
                        </td>
                        <!-- ENDIF -->
					</tr>
					<!-- END calendar_week -->
				</table>
           	</td>
       	</tr>
    </table>   
	</div>
<!-- IF S_NEW_EVENT --><!-- INCLUDE calendar_editor.html --><!-- ENDIF -->
</form>

<!-- IF not S_OVERRIDE_USER -->
<form name="settings_form" id="settings_form">
    <div class="panel newboxes" id="settings-panel" style="display: none;">
	<table class="tablebg" width="100%" cellspacing="1">       
		<tr>
			<td align="center" class="cat" colspan="2"><h4>{L_CALENDAR_SETTINGS}</h4></td>
		</tr>
    <fieldset class="fields1">
    	<tr>
       		<td class="row1" style="width:50%;"><label><b class="genmed">{L_CAL_START_DAY}:</b></label></td>
       		<td class="row2">
                <label for="cal_start_sunday"><input type="radio" name="cal_start_day" id="cal_start_sunday" value="0" <!-- IF not S_MONDAY_FIRST --> checked="checked"<!-- ENDIF --> /> {L_SUN}</label>
                <label for="cal_start_monday"><input type="radio" name="cal_start_day" id="cal_start_monday" value="1" <!-- IF S_MONDAY_FIRST --> checked="checked"<!-- ENDIF --> /> {L_MON}</label>
       		</td>
    	</tr>
    	<tr>
       		<td class="row1" style="width:50%;"><label><b class="genmed">{L_SHOW_WEEK_NUMS}:</b></label></td>
       		<td class="row2">
                <label for="week_nums_on"><input type="radio" name="cal_week_nums" id="week_nums_on" value="1" <!-- IF S_SHOW_WEEK_NUMS --> checked="checked"<!-- ENDIF --> /> {L_YES}</label>
                <label for="week_nums_off"><input type="radio" name="cal_week_nums" id="week_nums_off" value="0" <!-- IF not S_SHOW_WEEK_NUMS --> checked="checked"<!-- ENDIF --> /> {L_NO}</label>
       		</td>
    	</tr>
    	<tr>
       		<td class="row1" style="width:50%;"><label><b class="genmed">{L_SHOW_UPCOMING_EVENTS}:</b></label></td>
       		<td class="row2">
                <label for="events_list_on"><input type="radio" name="cal_events_list" id="events_list_on" value="1" <!-- IF S_SHOW_UPCOMING_EVENTS --> checked="checked"<!-- ENDIF --> /> {L_YES}</label>
                <label for="events_list_off"><input type="radio" name="cal_events_list" id="events_list_off" value="0" <!-- IF not S_SHOW_UPCOMING_EVENTS --> checked="checked"<!-- ENDIF --> /> {L_NO}</label>
       		</td>
    	</tr>
    	<tr>
       		<td class="row1" style="width:50%;"><label><b class="genmed">{L_UPCOMING_EVENTS_DAYS}:</b></label></td>
       		<td class="row2">
                <input type="text" name="cal_upcoming_events_days" id="cal_upcoming_events_days" size="2" maxlength="2" value="{UPCOMING_EVENTS_DAYS}" class="post" onkeyup="CheckMax(this, {EVENTS_LIST_MAX_DAYS})" />
       		</td>
    	</tr>
    	<tr>
       		<td class="row1" style="width:50%;"><label><b class="genmed">{L_SHOW_BIRTHDAYS}:</b></label></td>
       		<td class="row2">
                <label for="birthdays_on"><input type="radio" name="cal_birthdays" id="birthdays_on" value="1" <!-- IF S_SHOW_BIRTHDAYS --> checked="checked"<!-- ENDIF --> /> {L_YES}</label>
                <label for="birthdays_off"><input type="radio" name="cal_birthdays" id="birthdays_off" value="0" <!-- IF not S_SHOW_BIRTHDAYS --> checked="checked"<!-- ENDIF --> /> {L_NO}</label>
       		</td>
    	</tr>
    	<tr>
       		<td class="row1" style="width:50%;"><label><b class="genmed">{L_SHOW_UPCOMING_BIRTHDAYS}:</b></label></td>
       		<td class="row2">
                <label for="birthdays_list_on"><input type="radio" name="cal_birthdays_list" id="birthdays_list_on" value="1" <!-- IF S_SHOW_UPCOMING_BIRTHDAYS --> checked="checked"<!-- ENDIF --> /> {L_YES}</label>
                <label for="birthdays_list_off"><input type="radio" name="cal_birthdays_list" id="birthdays_list_off" value="0" <!-- IF not S_SHOW_UPCOMING_BIRTHDAYS --> checked="checked"<!-- ENDIF --> /> {L_NO}</label>
       		</td>
    	</tr>
    	<tr>
       		<td class="row1" style="width:50%;"><label><b class="genmed">{L_UPCOMING_BIRTHDAYS_DAYS}:</b></label></td>
       		<td class="row2">
                <input type="text" name="cal_upcoming_birthdays_days" id="cal_upcoming_birthdays_days" size="2" maxlength="2" value="{UPCOMING_BIRTHDAYS_DAYS}" class="post" onkeyup="CheckMax(this, {BDAYS_LIST_MAX_DAYS})" />
      		</td>
    	</tr>
		<tr>
			<td colspan="2" style="text-align:center;"  class="row2">
				<div id="submit-panel">
				<input type="submit" accesskey="c" tabindex="7" name="post" value="{L_SUBMIT}" class="button1" />&nbsp;
				<input type="submit" accesskey="c" tabindex="7" name="cancel" value="{L_CANCEL}" class="button1" />
				</div>
			</td>
		</tr>
        </fieldset>    
    </table>
    </div>
<!-- ENDIF -->
</form>

<div id="bday-panel">
<!-- IF S_SHOW_UPCOMING_EVENTS -->
<table class="tablebg" width="100%" cellspacing="1" >
	<tr>
		 <td class="cat" colspan="2"><h4>{L_UPCOMING_EVENTS}{L_EVENTS_TIMEFRAME}</h4></td>
	</tr>
	<tr>
		<td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_BIRTHDAYS}" /></td>
		<td class="row1" width="100%"><p class="genmed">
           	<!-- IF S_IS_EVENTS -->
           	<!-- BEGIN event_list -->{event_list.TITLE} ({L_ON} {event_list.DATE} {L_AT} {event_list.TIME})<!-- IF not event_list.S_LAST_ROW -->, <!-- ENDIF --><!-- END event_list -->    
           	<!-- ELSE -->
           	{L_NO_UPCOMING_EVENTS}
           	<!-- ENDIF -->
		</p></td>
	</tr>
</table>
<br />
<!-- ENDIF -->
<!-- IF S_SHOW_UPCOMING_BIRTHDAYS -->
<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<td class="cat" colspan="2"><h4>{L_UPCOMING_BIRTHDAYS}{L_BIRTHDAYS_TIMEFRAME}</h4></td>
	</tr>
	<tr>
		<td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_BIRTHDAYS}" /></td>
		<td class="row1" width="100%"><p class="genmed">
        	<!-- IF S_IS_BIRTHDAYS -->
          	{L_CONGRATULATIONS}: <!-- BEGIN bday_list -->{bday_list.USERNAME_FULL} ({bday_list.AGE} {L_ON} {bday_list.ON_DAY})<!-- IF not bday_list.S_LAST_ROW -->, <!-- ENDIF --><!-- END bday_list -->    
       		<!-- ELSE -->
          	{L_NO_UPCOMING_BIRTHDAYS}
         	<!-- ENDIF -->
		</p></td>
	</tr>
</table>
<br />
<!-- ENDIF -->
</div>
<table class="tablebg" width="100%" cellspacing="1" id="notes-panel">
	<tr>
		<td class="cat" colspan="2"><h4>{L_CALENDAR_NOTES}</h4></td>
	</tr>
	<tr>
		<td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_BIRTHDAYS}" /></td>
		<td class="row1" width="100%"><p class="genmed">{L_WEEK_NUM_NOTES}</p></td>
	</tr>
</table>

<!-- INCLUDE overall_footer.html -->